<%@ page import="java.util.List" %>
<%@ page import="com.fuful.domain.Cart" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>产品名称</td>
        <td>产品单价</td>
        <td>产品数量</td>
        <td>小计</td>
    </tr>
    <%
        List<Cart> carts = (List<Cart>) session.getAttribute("mycarts");
        for (Cart c: carts) {
    %>
    <tr>
        <td><%= c.getPid().getPname()%></td>
        <td><%= c.getPid().getPprice()%></td>
        <td><%= c.getPnum()%></td>
        <td><%= c.getPid().getPprice()*c.getPnum()%></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
